/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.mycompany.ingsoc2;

import com.mycompany.ingsoc2.SwingViews.VcNuevoViewSwing;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author sfreiman
 */
public class VcLstPrincipalNuevo implements ActionListener {

    private VcPrincipalView pView;
    private VcPrincipalModel pModel;
    private VcNuevoController nuevoController;

    public VcLstPrincipalNuevo(VcPrincipalView pView, VcPrincipalModel pModel) {
        this.pView = pView;
        this.pModel = pModel;
    }

    public void actionPerformed(ActionEvent e) {
        try {
            this.nuevoController = new VcNuevoController(pView,new VcNuevoViewSwing(), pModel);
            this.nuevoController.mostrarPantalla();
        } catch (SQLException ex) {
            Logger.getLogger(VcLstPrincipalNuevo.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
}
